<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<header>
<img src="${rootDir}/images/logo_edit.JPG" alt="pizacao and his life"/>
<nav>

 <ul>
    <li><a href="${rootDir}/index.jsp">Home</a></li>
    <li><a href="${rootDir}/life.jsp">Life</a></li>
    <li><a href="${rootDir}/study.jsp">Study</a></li>
    <li><a href="${rootDir}/work.jsp">Work</a></li>
    <li><a href="${rootDir}/about.jsp">About</a></li>
    <li>	<% 
    String name=(String)session.getAttribute("username");
    if(name==null){
    	%>
    	<input type="button" id="loginbutton" value="login">
    	
    	<h4>welcome, Please login</h4>
    	<%
    }else{
    	%>
    	<input type="button" id="logoutbutton" value="logout">
    	<h4>welcome,<%out.print(name);%></h4>
    	<%
    }
    %></li>
 </ul>
</nav>


</header>